home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-07 | 2.0 KB | 52 lines | [TEXT/ttxt] |
- Audit Library
- Copyright © 1992-93, Apple Computer Inc.
-
- Audit is a small library of functions that provide an unobtrusive
- event tracing capability to applications, drivers, code-resources,
- call-backs, and any other "flavor" of Macintosh software.
-
- The initialization function (InitAudit) must be called from a
- "memory-safe" environment (i.e., InitAudit may not be called from
- a driver completion routine), but all other functions may be called
- at any time.
-
- The audit functions are defined by comments in Audit.h and Audit.c.
- A MicrosoftWord 5.0 document, “About Audit” documents the program.
-
- The DisplayAudit application may be used to follow the execution
- of a program being audited. It can display auditing from several
- sources, and allows logging the audited data to a text file.
-
- The following are provided:
-
- • Audit.h -- this header file must be included by all functions
- that use Audit. It defines the structures and kernel functions
- that are needed.
- • Audit.c -- this file contains the C functions that support
- debugging. It is linked into all modules that need this support.
- • AuditDCMD.c -- this is the source for a MacsBug dcmd (formatting
- command) that can be used to display the current debug log data
- area within MacsBug or, presumably, TMON.
- • MakeFile -- this MPW command file builds and installs AuditDCMD.
- It can also build DisplayAudit.
- • AuditEntryFormat.c -- this file formats an audit record.
- • DisplayAudit.π -- This Think C Project file builds DisplayAudit.
- • MakeFile -- this MPW MakeFile builds the Audit DCMD and the
- DisplayAudit application.
- • dcmds -- this folder contains a copy of the MacsBug dcmd support
- functions.
-
- Building:
-
- • Use the MakeFile to compile and install Audit in your MacsBug
- preferences file. You must reboot your system to use the audit dcmd.
- • Build DisplayAudit using either the MPW or Think version.
- • Copy Audit.h and Audit.c to the source folders for applications
- (etc.) that need logging capability.
-
- Requirements
- • MPW 3.2
- • Think C 6.0
-
-
-